Fixed a bug in GtkCellAreaBoxIter when allocating vertically.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 9 Nov 2010 04:22:44 +0000 (13:22 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 9 Nov 2010 04:22:44 +0000 (13:22 +0900)
gtk/gtkcellareaboxiter.c

index 03e492cfcd83f5ea37d04cf5f5849fa9488f23af..c6dd92f0dc37f88451f5e9b77d33b54ae86c7979 100644 (file)
@@ -491,9 +491,7 @@ allocate_for_orientation (GtkCellAreaBoxIter *iter,
   gint                       avail_size = size;
 
   orientation_sizes =
-    gtk_cell_area_box_iter_get_requests (iter, 
-                                        GTK_ORIENTATION_HORIZONTAL, 
-                                        &n_groups);
+    gtk_cell_area_box_iter_get_requests (iter, orientation, &n_groups);
 
   /* Count groups that expand */
   for (i = 0; i < n_groups; i++)